package com.antu.first.util;

/**
 *
 * 用于分页的页数计算器
 * Created by Administrator on 2018/3/4.
 */
public class PageCaculator {

    public static int caculateRowIndex(int pageIndex, int pageSize){
        return (pageIndex>0)?(pageIndex-1)*pageSize:0;
    }

}
